-- GENERATED SPELL FOR [Collin Mauren] --


function spell0_4078(pUnit, Event) --@Create Scroll,n/a--
pUnit:FullCastSpellOnTarget(6671,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4078', 5000, 1)
end

function Sorts_4078(pUnit, Event)
local choix_sorts_4078 = math.random(0, 0)
if choix_sorts_4078 == 0 then
pUnit:RegisterEvent('spell0_4078', 1, 1)
end
end

function mob4078_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4078', math.random(1500, 3000), 1)
end

function mob4078_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4078_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4078_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4078, 1, 'mob4078_Action')
RegisterUnitEvent(4078, 2, 'mob4078_Leave')
RegisterUnitEvent(4078, 3, 'mob4078_Kill')
RegisterUnitEvent(4078, 4, 'mob4078_Die')
